package com.deer.wms.base.system.service.pda.impl;

import com.deer.wms.base.system.dao.pda.PdaActionRecordMapper;
import com.deer.wms.base.system.model.pda.BarSelectModel;
import com.deer.wms.base.system.model.pda.BoxOverViewYRKModel;
import com.deer.wms.base.system.model.pda.BoxSelectBarModel;
import com.deer.wms.base.system.model.pda.PdaActionRecord;
import com.deer.wms.base.system.model.zh.AssessUserDeptModel;
import com.deer.wms.base.system.service.pda.PdaActionRecordService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PdaActionRecordServiceImpl extends AbstractService<PdaActionRecord, Integer> implements PdaActionRecordService {
    @Autowired
    PdaActionRecordMapper pdaActionRecordMapper;

    @Override
    public List<PdaActionRecord> selectday(PdaActionRecord pdaActionRecord) {
        return pdaActionRecordMapper.selectday(pdaActionRecord);
    }

    @Override
    public List<PdaActionRecord> selectweek(PdaActionRecord pdaActionRecord) {
        return pdaActionRecordMapper.selectweek(pdaActionRecord);
    }

    @Override
    public List<PdaActionRecord> selectmonth(PdaActionRecord pdaActionRecord) {
        return pdaActionRecordMapper.selectmonth(pdaActionRecord);
    }

    @Override
    public List<PdaActionRecord> selectyear(PdaActionRecord pdaActionRecord) {
        return pdaActionRecordMapper.selectyear(pdaActionRecord);
    }

    @Override
    public List<PdaActionRecord> selectall(PdaActionRecord pdaActionRecord) {
        return pdaActionRecordMapper.selectall(pdaActionRecord);
    }

    @Override
    public List<PdaActionRecord> selectUsername() {
        return pdaActionRecordMapper.selectUsername();
    }

    @Override
    public AssessUserDeptModel assessUserDept(Long user_id) {
        return pdaActionRecordMapper.assessUserDept(user_id);
    }

    @Override
    public BarSelectModel findBarInfo(String bar) {
        return pdaActionRecordMapper.findBarInfo(bar);
    }

    @Override
    public List<BoxOverViewYRKModel> findAllBoxYRK(int time) {
        return pdaActionRecordMapper.findAllYRKBox(time);
    }

    @Override
    public List<BoxOverViewYRKModel> findAllBoxYCK(int time) {
        return pdaActionRecordMapper.findAllYCKBox(time);
    }

    @Override
    public List<BoxSelectBarModel> findBoxBar(String torr) {
        return pdaActionRecordMapper.findBoxBar(torr);
    }
}
